//package com.shu.config;
//
//import org.apache.activemq.command.ActiveMQQueue;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.jms.annotation.EnableJms;
//import org.springframework.jms.core.JmsMessagingTemplate;
//import org.springframework.jms.core.JmsTemplate;
//
//import javax.jms.ConnectionFactory;
//import javax.jms.Queue;
//
///**
// * Created by shu on 2017/8/15.
// */
//@Configuration
//@EnableJms
//public class ActiviMqConfig {
//
//    @Bean
//    public Queue queue(){
//        return new ActiveMQQueue("sample.queue");
//    }
//
//    @Bean
//    public JmsMessagingTemplate jmsMessagingTemplate(ConnectionFactory connectionFactory){
//        JmsMessagingTemplate jmsMessagingTemplate = new JmsMessagingTemplate();
//        jmsMessagingTemplate.setConnectionFactory(connectionFactory);
//        return jmsMessagingTemplate;
//    }
//
//}
